import request from '@/utils/request'
export function save(data) {
    return request({
        url: '/exam/save',
        method: 'post',
        data
    })
}

export function findAll(data) {
  return request({
    url: '/exam/page',
    method: 'post',
    data
  })
}

export function del(id) {
    return request({
      url: `/exam/delete/${id}`,
      method: 'get',
    })
  }

export function examData(id) {
    return request({
        url: `/exam/findPaper/${id}`,
        method: 'get',
    })
}
export function updateExam(data) {
    return request({
        url: "/exam/updateExam",
        method: 'post',
        data
    })
}